package priv.yiyuan.example.design.facade;

/**
 * 营销系统同步
 * <p>
 * 观察者模式-具体观察者
 *
 * @author YiYuan
 * @data 2025/9/13
 * @apoNote
 */
public class MarketingSyncObserver implements CustomerObserver {

    private MarketingService marketingService;

    public MarketingSyncObserver(MarketingService marketingService) {
        this.marketingService = marketingService;
    }

    @Override
    public void update(Customer customer) {
        marketingService.updateCustomerTag(customer.getId(), customer.getLevel());
    }
}
